// $ANTLR 3.4 C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g 2012-10-24 11:27:45

package PL.prac6;


import org.antlr.runtime.*;
import java.util.Stack;
import java.util.List;
import java.util.ArrayList;

@SuppressWarnings({"all", "warnings", "unchecked"})
public class anasint extends Parser {
    public static final String[] tokenNames = new String[] {
        "<invalid>", "<EOR>", "<DOWN>", "<UP>", "APARENTESIS", "BLANCO", "CPARENTESIS", "DIGITO", "MULTIDIV", "NUMERO", "SEPARADOR", "SUMARESTA"
    };

    public static final int EOF=-1;
    public static final int APARENTESIS=4;
    public static final int BLANCO=5;
    public static final int CPARENTESIS=6;
    public static final int DIGITO=7;
    public static final int MULTIDIV=8;
    public static final int NUMERO=9;
    public static final int SEPARADOR=10;
    public static final int SUMARESTA=11;

    // delegates
    public Parser[] getDelegates() {
        return new Parser[] {};
    }

    // delegators


    public anasint(TokenStream input) {
        this(input, new RecognizerSharedState());
    }
    public anasint(TokenStream input, RecognizerSharedState state) {
        super(input, state);
    }

    public String[] getTokenNames() { return anasint.tokenNames; }
    public String getGrammarFileName() { return "C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g"; }



    // $ANTLR start "entrada"
    // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:14:1: entrada : instrucciones EOF ;
    public final void entrada() throws RecognitionException {
        try {
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:14:9: ( instrucciones EOF )
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:14:11: instrucciones EOF
            {
            pushFollow(FOLLOW_instrucciones_in_entrada43);
            instrucciones();

            state._fsp--;


            match(input,EOF,FOLLOW_EOF_in_entrada45); 

            }

        }
        catch (RecognitionException re) {
            reportError(re);
            recover(input,re);
        }

        finally {
        	// do for sure before leaving
        }
        return ;
    }
    // $ANTLR end "entrada"



    // $ANTLR start "instrucciones"
    // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:15:1: instrucciones : ( instruccion )* ;
    public final void instrucciones() throws RecognitionException {
        try {
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:15:15: ( ( instruccion )* )
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:15:17: ( instruccion )*
            {
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:15:17: ( instruccion )*
            loop1:
            do {
                int alt1=2;
                int LA1_0 = input.LA(1);

                if ( (LA1_0==APARENTESIS||LA1_0==NUMERO) ) {
                    alt1=1;
                }


                switch (alt1) {
            	case 1 :
            	    // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:15:18: instruccion
            	    {
            	    pushFollow(FOLLOW_instruccion_in_instrucciones54);
            	    instruccion();

            	    state._fsp--;


            	    }
            	    break;

            	default :
            	    break loop1;
                }
            } while (true);


            }

        }
        catch (RecognitionException re) {
            reportError(re);
            recover(input,re);
        }

        finally {
        	// do for sure before leaving
        }
        return ;
    }
    // $ANTLR end "instrucciones"



    // $ANTLR start "instruccion"
    // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:16:1: instruccion : exp SEPARADOR ;
    public final void instruccion() throws RecognitionException {
        try {
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:16:13: ( exp SEPARADOR )
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:16:15: exp SEPARADOR
            {
            pushFollow(FOLLOW_exp_in_instruccion64);
            exp();

            state._fsp--;


            match(input,SEPARADOR,FOLLOW_SEPARADOR_in_instruccion66); 

            }

        }
        catch (RecognitionException re) {
            reportError(re);
            recover(input,re);
        }

        finally {
        	// do for sure before leaving
        }
        return ;
    }
    // $ANTLR end "instruccion"



    // $ANTLR start "exp"
    // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:17:1: exp : exp_mult ( ( SUMARESTA ) exp_mult )* ;
    public final void exp() throws RecognitionException {
        try {
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:17:5: ( exp_mult ( ( SUMARESTA ) exp_mult )* )
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:17:7: exp_mult ( ( SUMARESTA ) exp_mult )*
            {
            pushFollow(FOLLOW_exp_mult_in_exp74);
            exp_mult();

            state._fsp--;


            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:17:16: ( ( SUMARESTA ) exp_mult )*
            loop2:
            do {
                int alt2=2;
                int LA2_0 = input.LA(1);

                if ( (LA2_0==SUMARESTA) ) {
                    alt2=1;
                }


                switch (alt2) {
            	case 1 :
            	    // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:17:17: ( SUMARESTA ) exp_mult
            	    {
            	    // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:17:17: ( SUMARESTA )
            	    // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:17:18: SUMARESTA
            	    {
            	    match(input,SUMARESTA,FOLLOW_SUMARESTA_in_exp78); 

            	    }


            	    pushFollow(FOLLOW_exp_mult_in_exp81);
            	    exp_mult();

            	    state._fsp--;


            	    }
            	    break;

            	default :
            	    break loop2;
                }
            } while (true);


            }

        }
        catch (RecognitionException re) {
            reportError(re);
            recover(input,re);
        }

        finally {
        	// do for sure before leaving
        }
        return ;
    }
    // $ANTLR end "exp"



    // $ANTLR start "exp_mult"
    // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:18:1: exp_mult : exp_base ( ( MULTIDIV ) exp_base )* ;
    public final void exp_mult() throws RecognitionException {
        try {
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:18:10: ( exp_base ( ( MULTIDIV ) exp_base )* )
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:18:12: exp_base ( ( MULTIDIV ) exp_base )*
            {
            pushFollow(FOLLOW_exp_base_in_exp_mult91);
            exp_base();

            state._fsp--;


            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:18:21: ( ( MULTIDIV ) exp_base )*
            loop3:
            do {
                int alt3=2;
                int LA3_0 = input.LA(1);

                if ( (LA3_0==MULTIDIV) ) {
                    alt3=1;
                }


                switch (alt3) {
            	case 1 :
            	    // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:18:22: ( MULTIDIV ) exp_base
            	    {
            	    // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:18:22: ( MULTIDIV )
            	    // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:18:23: MULTIDIV
            	    {
            	    match(input,MULTIDIV,FOLLOW_MULTIDIV_in_exp_mult95); 

            	    }


            	    pushFollow(FOLLOW_exp_base_in_exp_mult98);
            	    exp_base();

            	    state._fsp--;


            	    }
            	    break;

            	default :
            	    break loop3;
                }
            } while (true);


            }

        }
        catch (RecognitionException re) {
            reportError(re);
            recover(input,re);
        }

        finally {
        	// do for sure before leaving
        }
        return ;
    }
    // $ANTLR end "exp_mult"



    // $ANTLR start "exp_base"
    // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:19:1: exp_base : ( NUMERO | APARENTESIS exp CPARENTESIS );
    public final void exp_base() throws RecognitionException {
        try {
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:19:10: ( NUMERO | APARENTESIS exp CPARENTESIS )
            int alt4=2;
            int LA4_0 = input.LA(1);

            if ( (LA4_0==NUMERO) ) {
                alt4=1;
            }
            else if ( (LA4_0==APARENTESIS) ) {
                alt4=2;
            }
            else {
                NoViableAltException nvae =
                    new NoViableAltException("", 4, 0, input);

                throw nvae;

            }
            switch (alt4) {
                case 1 :
                    // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:19:12: NUMERO
                    {
                    match(input,NUMERO,FOLLOW_NUMERO_in_exp_base108); 

                    }
                    break;
                case 2 :
                    // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\anasint.g:19:20: APARENTESIS exp CPARENTESIS
                    {
                    match(input,APARENTESIS,FOLLOW_APARENTESIS_in_exp_base111); 

                    pushFollow(FOLLOW_exp_in_exp_base113);
                    exp();

                    state._fsp--;


                    match(input,CPARENTESIS,FOLLOW_CPARENTESIS_in_exp_base115); 

                    }
                    break;

            }
        }
        catch (RecognitionException re) {
            reportError(re);
            recover(input,re);
        }

        finally {
        	// do for sure before leaving
        }
        return ;
    }
    // $ANTLR end "exp_base"

    // Delegated rules


 

    public static final BitSet FOLLOW_instrucciones_in_entrada43 = new BitSet(new long[]{0x0000000000000000L});
    public static final BitSet FOLLOW_EOF_in_entrada45 = new BitSet(new long[]{0x0000000000000002L});
    public static final BitSet FOLLOW_instruccion_in_instrucciones54 = new BitSet(new long[]{0x0000000000000212L});
    public static final BitSet FOLLOW_exp_in_instruccion64 = new BitSet(new long[]{0x0000000000000400L});
    public static final BitSet FOLLOW_SEPARADOR_in_instruccion66 = new BitSet(new long[]{0x0000000000000002L});
    public static final BitSet FOLLOW_exp_mult_in_exp74 = new BitSet(new long[]{0x0000000000000802L});
    public static final BitSet FOLLOW_SUMARESTA_in_exp78 = new BitSet(new long[]{0x0000000000000210L});
    public static final BitSet FOLLOW_exp_mult_in_exp81 = new BitSet(new long[]{0x0000000000000802L});
    public static final BitSet FOLLOW_exp_base_in_exp_mult91 = new BitSet(new long[]{0x0000000000000102L});
    public static final BitSet FOLLOW_MULTIDIV_in_exp_mult95 = new BitSet(new long[]{0x0000000000000210L});
    public static final BitSet FOLLOW_exp_base_in_exp_mult98 = new BitSet(new long[]{0x0000000000000102L});
    public static final BitSet FOLLOW_NUMERO_in_exp_base108 = new BitSet(new long[]{0x0000000000000002L});
    public static final BitSet FOLLOW_APARENTESIS_in_exp_base111 = new BitSet(new long[]{0x0000000000000210L});
    public static final BitSet FOLLOW_exp_in_exp_base113 = new BitSet(new long[]{0x0000000000000040L});
    public static final BitSet FOLLOW_CPARENTESIS_in_exp_base115 = new BitSet(new long[]{0x0000000000000002L});

}